package com.interview02;

/**
 * 饿汉式:饥饿状态，直接创建对象
 */
public class PresidentUSA {
    //直接创建对象
    private static PresidentUSA usa = new PresidentUSA();

    private PresidentUSA(){
        System.out.println("创建单例对象......");
    }

    public static PresidentUSA getInstance(){
        return usa;
    }
}
